package com.example.sentinel.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 供应者Feign
 *
 * @author beerus
 * @date 2020/6/14 18:01
 */
@FeignClient(value = "provider-server",fallbackFactory = ProviderClientFallbackFactory.class)
public interface ProviderClient {

    /**
     * 远程调用服务站 请求名要一致
     * <p/>
     * 通常两边的是一样的
     *
     * @return
     */
    @GetMapping("/provider/get/username")
    String getUserName();
}
